package com.scheduler;


import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by 石头哥哥 on 7/20/16.
 * PROJECT_NAME: common
 * PACKAGE_NAME: com.scheduler
 * COMMENT :
 * <p>
 * <p>
 * 停止任务 采用变量控制方式
 */
public class ScheduledTasks implements ISchedulde {

    private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");


    @Override
    public void run() {
        System.out.println("The time is now " + dateFormat.format(new Date()));
    }
}
